<?php
 class Collect_BaseModel extends PT_Base{ public function __construct() { set_time_limit(0); $this->response->setHeader(); } protected function mergeParam($zym_10) { $zym_9 = array(); foreach ($zym_10 as $zym_14 => $zym_8) { foreach ($zym_8 as $zym_5 => $zym_15) { $zym_9[$zym_5][$zym_14] = $zym_15; } } return $zym_9; } protected function success($zym_9) { return array( 'status' => 1, 'data' => $zym_9 ); } protected function error($zym_6) { return array( 'status' => 0, 'msg' => $zym_6 ); } public function progress($zym_6, $zym_7 = 'success', $zym_11 = false) { if (empty($_GET['backRun'])) { switch ($zym_7) { case 'success': $zym_13 = 'green'; break; case 'error': $zym_13 = 'red'; break; case 'warning': $zym_13 = "orangered"; break; case 'info': $zym_13 = '#333'; break; default: $zym_13 = $zym_7; } $zym_12 = $zym_11 ? 'bold' : 'normal'; echo "<span style='color:{$zym_13};font-weight:{$zym_12}'>{$zym_6}</span><br />"; @ob_flush(); @flush(); } else { log::record($zym_6); } } }
?>